﻿<phone:PhoneApplicationPage 
    x:Class="LyalinSamples.WP7Client.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <controls:Panorama Title="Lyalin Sample App">
                <!-- ## Music and Video Hub ## -->
                <controls:PanoramaItem Header="MaV">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Style="{StaticResource PhoneTextAccentStyle}" Margin="12"
                                   Text="Music and Video Hub Integration Sample" TextWrapping="Wrap" />
                        
                        <Button x:Name="buttonCreateNewIcon" Click="buttonCreateNewIcon_Click"
                                Content="New Icon" Width="400" Height="100" 
                                HorizontalAlignment="Center" Margin="12" />
                        <Button x:Name="buttonCreateHistoryIcon" Click="buttonCreateHistoryIcon_Click"
                                Content="History Icon" Width="400" Height="100" 
                                HorizontalAlignment="Center" Margin="12" />
                        <Button x:Name="buttonCreateNowPlayingIcon" Click="buttonCreateNowPlayingIcon_Click"
                                Content="Now Playing Icon" Width="400" Height="100" 
                                HorizontalAlignment="Center" Margin="12" />
                    </StackPanel>
                </controls:PanoramaItem>
                
                <!-- Theme Detection -->
                <controls:PanoramaItem Header="Theme">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Style="{StaticResource PhoneTextAccentStyle}" Margin="12"
                                   Text="Phone Theme" TextWrapping="Wrap" />
                        <TextBlock x:Name="textPhoneTheme" Text="" Margin="12" />
                    </StackPanel>
                </controls:PanoramaItem>
                
                <!-- ## About ## -->
                <controls:PanoramaItem Header="About">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Style="{StaticResource PhoneTextAccentStyle}" Margin="12"
                                   Text="About Dmitry Lyalin's Sample Application" TextWrapping="Wrap" />
                        <TextBlock Margin="6" TextWrapping="Wrap"
                            Text="This is sample application created by Dmitry Lyalin for demonstration purposes only. This application is created by Dmitry Lyalin independently and does not represent Microsoft in any way, nor does this come with any warranties or guaranties. Please use this application and its samples at your own risk!" />
                        <TextBlock Margin="6" TextWrapping="Wrap"
                                   Text="If you have any comments or suggestions, please email dmitry.lyalin@lyalin.com" />
                    </StackPanel>
                </controls:PanoramaItem>
            </controls:Panorama>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>